package com.woniuxy.service;

import com.woniuxy.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    //添加用户
    public boolean addUser(User user);

    //用户名和密码查询用户
    public User findUserByNameAndPwd(@Param("name")String name, @Param("password")String password);

    //查询所有用户
    List<User> findAllUser();
}
